package com.danciyixue.boot.dcyx.model.form;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * 批量分配学生归属老师表单
 */
@Getter
@Setter
@Schema(description = "批量分配学生归属老师表单")
public class DcyxAssignTeacherBatchForm implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "老师ID", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "老师ID不能为空")
    private Long teacherId;

    @Schema(description = "学生ID列表", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "学生ID列表不能为空")
    private List<Long> userIds;
}
